//
//  HELPDFfileCacheTool.h
//  HandheldELearn
//
//  Created by wsj2015 on 16/7/20.
//  Copyright © 2016年 陈武琦. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "HELCourseContentModel.h"

@interface HELPDFfileCacheTool : NSObject





/**
 *  获取学习过的页数
 *
 *  @param pdfKey <#pdfKey description#>
 *
 *  @return <#return value description#>
 */
+ (NSNumber *)getLastPageFromKey:(NSString *)pdfKey;
/**
 *  保存学习到的页数
 *
 *  @param page   <#page description#>
 *  @param pdfKey <#pdfKey description#>
 */
+ (void)saveLastPage:(NSInteger)page withPdfKey:(NSString *)pdfKey;


/**
 *  判断沙盒里面是否有 pdf文件
 *
 *  @param pdfName <#pdfName description#>
 *
 *  @return   没有 返回nil
 */
+(NSString *)isChchedWithPdfFilename:(NSString *)pdfName isMP4:(BOOL)isMP4;


+ (NSString *)getDownloadPathWithPdfName:(NSString *)pdfName isMp4:(BOOL)isMp4;

///**
// *  获取学习过的页数
// *
// *  @param pdfKey <#pdfKey description#>
// *
// *  @return <#return value description#>
// */
//+ (NSNumber *)getLastPageFromKey:(NSString *)pdfKey;
/**
 *  保存学习到的页数
 *
 *  @param page   <#page description#>
 *  @param pdfKey <#pdfKey description#>
 */
//+ (void)saveLastPage:(NSInteger)page withPdfKey:(NSString *)pdfKey;

+ (void)removePdfFileWithPdfNames:(NSArray<HELCourseContentModel *>*)courses;

+ (void)sizeForAllCourseWithCallback:(void(^)(CGFloat size))callBack;

+ (void)removeAllCourses:(void(^)())callBack;





@end
